package com.xcity.pomelo.response;

import com.xcity.db.entity.Build;
import com.xcity.db.entity.Player;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class BuildLevelUpResponse extends Response {

	private int id;
//	private long rolerGold;
//	private long rolerTotalGold;
	private long remainingTime;
//	private int health;
//	private int price;
	
	public BuildLevelUpResponse(int serial, Player player, Build build) {
		super(serial);
		this.id = build.getId();
//		this.rolerGold = player.getGold();
//		this.rolerTotalGold = player.getFixedAssets();
		this.remainingTime = build.getLeftCD();
//		BuildLevelUpTemplate temp = build.getTemplate().getLevelUpTemplate(build.getLevel() + 1);
//		this.health = temp.getRisk(); // player.getRisk();
//		this.price = temp.getCost();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

//	public long getRolerGold() {
//		return rolerGold;
//	}
//
//	public void setRolerGold(long rolerGold) {
//		this.rolerGold = rolerGold;
//	}
//
//	public long getRolerTotalGold() {
//		return rolerTotalGold;
//	}
//
//	public void setRolerTotalGold(long rolerTotalGold) {
//		this.rolerTotalGold = rolerTotalGold;
//	}

	public long getRemainingTime() {
		return remainingTime;
	}

	public void setRemainingTime(long remainingTime) {
		this.remainingTime = remainingTime;
	}

//	public int getHealth() {
//		return health;
//	}
//
//	public void setHealth(int health) {
//		this.health = health;
//	}
//
//	public int getPrice() {
//		return price;
//	}
//
//	public void setPrice(int price) {
//		this.price = price;
//	}
}
